package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class RecursiveSearchOrder {

    private int beginIndex;
    private int endIndex;
    private boolean depthFirstBy;
    private boolean breadthFirstBy;
    private SortSpecificationList sortSpecificationList;

    public RecursiveSearchOrder(int beginIndex,
                                boolean depthFirstBy,
                                boolean breadthFirstBy,
                                SortSpecificationList sortSpecificationList) {
        this.beginIndex = beginIndex;
        this.endIndex = sortSpecificationList.get(sortSpecificationList.size() - 1).getEndIndex();
        this.depthFirstBy = depthFirstBy;
        this.breadthFirstBy = breadthFirstBy;
        this.sortSpecificationList = sortSpecificationList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isDepthFirstBy() {
        return depthFirstBy;
    }

    public boolean isBreadthFirstBy() {
        return breadthFirstBy;
    }

    public SortSpecificationList getSortSpecificationList() {
        return sortSpecificationList;
    }

}
